package com.sleepingcat.flutter_boost_android.fragment

import com.cat.android.lib_base.base.RouterFragment
import com.cat.android.lib_ui.ext.onClick
import com.cat.android.plugin_navigation_runtime.NavDestination
import com.sleepingcat.flutter_boost_android.databinding.FragmentMainBinding
import com.sleepingcat.lib_common.const.Routes

/**
 * @作者 志浩
 * @时间 2025/3/11 22:36
 * @描述 TODO
 */
@NavDestination(type = NavDestination.NavType.Fragment, route = Routes.App.APP_MAIN, isStart = true)
class MainFragment : RouterFragment<FragmentMainBinding>() {
    private val TAG = "MainFragment"

    override fun initView() {
        super.initView()
        binding.apply {
            btnJetpack.onClick {
                navigate(Routes.Jetpack.JETPACK_MAIN.hashCode())
            }
            btnFlutter.onClick {
                navigate(Routes.Flutter.BOOST_TEST.hashCode())
            }
        }
    }
}